#include "CheckersGrid.h"

#include "../../../base.h"

/*
	 CheckersGrid
*/

/*	public	*/

CheckersGrid::CheckersGrid(int width, int height)
	: _width(width), _height(height) {}

int CheckersGrid::getTile(int x, int y) const {
	assert(x < _width && y < _height);
	return (x + y) % 2;
}

int CheckersGrid::getWidth() const {
	return _width;
}

int CheckersGrid::getHeight() const {
	return _height;
}
